﻿//--------------------------------------------------------------------------------------------------------------------- 
// <copyright file="WriteFile.cs" company="Collaboris Ltd.">
//   Copyright (c) Collaboris Ltd. All rights reserved.
// </copyright>
// <summary>
//   Defines the WriteFile type.
// </summary>
//---------------------------------------------------------------------------------------------------------------------
namespace Collaboris.Saf.Tests.Support.Actions
{
    using System.IO;

    using Collaboris.Saf.Tests.Macros;

    using Engine;

    /// <summary>
    /// </summary>
    public class ExpressionAction : ActionBase<FileProperties>
    {
        /*
        /// <summary>
        /// Return the name of this Action
        /// </summary>
        /// <returns></returns>
        public override string Name
        {
            get
            {
                return "Collaboris.SharePoint.Libary.Tests.Support.Actions.WriteFile";
            }
        }
        */ 

        /// <summary>
        /// Code to run the Action
        /// </summary>
        /// <returns></returns>
        protected override ProcessStatus DoAction(SafContext context, FileProperties props)
        {
            // Successful Result, lets continue processing the 
            // next Actions (if any).
            return ProcessStatus.Success;
        }

        protected override ProcessStatus UndoAction(SafContext context, FileProperties props)
        {
            // Successful Result, lets continue processing the 
            // Previous Actions (if any).
            return ProcessStatus.Success;
        }
    }
}